import java.util.Scanner;

/**
 * @author 8zhazha8
 * @create 2021-04-24-20:53
 */
public class HomeWork {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入X的值");
        int x=scanner.nextInt();
        System.out.println("请输入Y的值");
        int y=scanner.nextInt();
        System.out.println("请输入z的值");
        int z=scanner.nextInt();
        int num=he(x, y, z);
        System.out.println("和是："+num);
    }
    public static int he(int x,int y,int z) {
        int he=x*3+y*3+z*3;
        return he;
    }
}
